package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created  on 2017/12/21.
 *
 * @author helin
 * <p>
 * 新版活动
 */

public class ActDetailsBean implements Parcelable {

    /**
     * 活动评论
     */
    private List<ActCommentBean> comment;


    /**
     * 活动详情
     */
    private ActivityListTempBean activity;


    /**
     * 活动相册
     */
    private List<ActivityImageBean> images;

    /**
     * 投票
     */
    private ActVoteBean vote;

    /**
     * 花絮
     */
    private Catalog catalog;

    /**
     * 选手
     */
    private List<PlayerVOBean> players;

    /**
     * 评论总数
     */
    private Integer commentCount;

    /**
     * 收藏总数
     */
    private Integer sumCollection;

    /**
     * 已经报名数量
     */
    private Integer sumPlayer;
    /**
     * 是否还有余额
     */
    private Integer isFull;

    /**
     * 票总数
     */
    private Integer sumVote;
    /**
     * 收藏
     */
    private Integer isCollection;

    private ActivityLiveBean activityLive;

    public ActVoteBean getVote() {
        return vote;
    }

    public void setVote(ActVoteBean vote) {
        this.vote = vote;
    }

    public Integer getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(Integer isCollection) {
        this.isCollection = isCollection;
    }

    public Integer getSumVote() {
        return sumVote;
    }

    public void setSumVote(Integer sumVote) {
        this.sumVote = sumVote;
    }

    public ActivityLiveBean getActivityLive() {
        return activityLive;
    }

    public void setActivityLive(ActivityLiveBean activityLive) {
        this.activityLive = activityLive;
    }

    public Integer getSumPlayer() {
        return sumPlayer;
    }

    public void setSumPlayer(Integer sumPlayer) {
        this.sumPlayer = sumPlayer;
    }

    public Integer getSumCollection() {
        return sumCollection;
    }

    public void setSumCollection(Integer sumCollection) {
        this.sumCollection = sumCollection;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public List<PlayerVOBean> getPlayers() {
        return players;
    }

    public void setPlayers(List<PlayerVOBean> players) {
        this.players = players;
    }

    public ActivityListTempBean getActivity() {
        return activity;
    }

    public Catalog getCatalog() {
        return catalog;
    }

    public void setCatalog(Catalog catalog) {
        this.catalog = catalog;
    }

    public void setActivity(ActivityListTempBean activity) {
        this.activity = activity;
    }

    public List<ActCommentBean> getComment() {
        return comment;
    }

    public void setComment(List<ActCommentBean> comment) {
        this.comment = comment;
    }

    public List<ActivityImageBean> getImages() {
        return images;
    }

    public void setImages(List<ActivityImageBean> images) {
        this.images = images;
    }

    public Integer getIsFull() {
        return isFull;
    }

    public void setIsFull(Integer isFull) {
        this.isFull = isFull;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.comment);
        dest.writeParcelable(this.activity, flags);
        dest.writeParcelable(this.activityLive, flags);
        dest.writeParcelable(this.catalog, flags);
        dest.writeTypedList(this.images);
        dest.writeTypedList(this.players);
        dest.writeParcelable(this.vote, flags);
        dest.writeValue(this.commentCount);
        dest.writeValue(this.sumVote);
        dest.writeValue(this.sumPlayer);
        dest.writeValue(this.isFull);
    }

    protected ActDetailsBean(Parcel in) {
        this.comment = in.createTypedArrayList(ActCommentBean.CREATOR);
        this.activity = in.readParcelable(ActivityListTempBean.class.getClassLoader());
        this.activityLive = in.readParcelable(ActivityLiveBean.class.getClassLoader());
        this.catalog = in.readParcelable(Catalog.class.getClassLoader());
        this.images = in.createTypedArrayList(ActivityImageBean.CREATOR);
        this.players = in.createTypedArrayList(PlayerVOBean.CREATOR);
        this.commentCount = (Integer) in.readValue(Integer.class.getClassLoader());
        this.sumVote = (Integer) in.readValue(Integer.class.getClassLoader());
        this.sumPlayer = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isFull = (Integer) in.readValue(Integer.class.getClassLoader());
        this.vote = in.readParcelable(ActVoteBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<ActDetailsBean> CREATOR = new Parcelable.Creator<ActDetailsBean>() {
        @Override
        public ActDetailsBean createFromParcel(Parcel source) {
            return new ActDetailsBean(source);
        }

        @Override
        public ActDetailsBean[] newArray(int size) {
            return new ActDetailsBean[size];
        }
    };
}
